package com.vhall.component.controller.filter.facade;


import com.vhall.component.entity.filter.vo.FilterWordsGetReqVO;
import com.vhall.component.entity.filter.vo.FilterWordsReportReqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * @author longzhen.gong
 * @date 2021/7/2 14:10
 */
@FeignClient(name = "FilterWordsApiFacade", path = "/v4/api/filterwords")
public interface FilterWordsApiFacade {


    /**
     * 获取敏感词
     *
     * @param vo
     * @return keywords with "," join
     */
    @PostMapping(value = "/get-filter-words", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    String getFilterWords(@Validated FilterWordsGetReqVO vo);

    /**
     * 上报敏感词
     */
    @PostMapping(value = "/report-filter-words")
    Boolean reportFilterWords(@Validated FilterWordsReportReqVO reqVo);
}
